// user-service.ts

import  { UserService, User } from "./user-service.interface";

class ConcreteUserService implements UserService {
    private users: User[] = [];

    addUser(user: User): void {
        this.users.push(user);
    }

    getUsers(): User[] {
        return this.users;
    }
}
async  function main() {
    const userService: UserService = new ConcreteUserService()

    let user = {
        id:12,
        name:"xmc",
        age:23
    };
    userService.addUser(user)

    console.log(userService.getUsers());
}

main()